{{ define "content" }}
    {{ partial "svg_sprite_icons/aqxc" }}
    <main class="pb-5 container-xxl" id="main">
        <div class="mx-auto py-5 col-12 col-md-10 col-lg-8 col-xxl-6">
            <form class="d-flex flex-column row-gap-4 mb-3" id="study_form">
                <div class="card">
                    <div class="card-body d-flex flex-column row-gap-4">
                        <div class="card-body d-flex justify-content-around">
                            <div>
                                <input type="radio" class="btn-check" name="category" value="1" id="category_industry" required>
                                <label class="btn btn-outline-success" for="category_industry">按行业领域</label>
                            </div>
                            <div>
                                <input type="radio" class="btn-check" name="category" value="2" id="category_special">
                                <label class="btn btn-outline-success" for="category_special">按特种作业</label>
                            </div>
                        </div>
                        <div class="form-floating">
                            <select class="form-select" name="category_id" id="videoSelect" aria-label="选择类别" required>
                                <option selected disabled>请选择按行业或者岗位进行学习</option>
                            </select>
                            <label class="user-select-none" for="videoSelect">行业 / 工种</label>
                        </div>
                        <div class="card-body rounded border border-opacity-50" id="viewMode">
                            <div class="card-title">观看方式</div>
                            <div class="nav d-flex justify-content-around">
                                <div>
                                    <input class="btn-check" type="radio" name="viewMode" id="viewMode_quick" value="quick" required>
                                    <label class="btn btn-outline-success" for="viewMode_quick" id="quick-tab" data-bs-toggle="tab" data-bs-target="#quick-content" role="tab">快速浏览</label>
                                    <div class="form-text">
                                        <span>积累观看次数</span>
                                    </div>
                                </div>
                                <div>
                                    <input class="btn-check" type="radio" name="viewMode" id="viewMode_full" value="full">
                                    <label class="btn btn-outline-success" for="viewMode_full" id="full-tab" data-bs-toggle="tab" data-bs-target="#full-content" role="tab">完整观看</label>
                                    <div class="form-text">
                                        <span>积累学习时长</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-body rounded border border-opacity-50">
                            <div class="text-center text-success">一般情况下，无需修改</div>
                            <div class="tab-content">
                                <div class="tab-pane fade" id="quick-content" role="tabpanel" aria-labelledby="quick-tab" tabindex="-1">
                                    <div>
                                        <label class="mb-2" for="browsingDuration">浏览时长</label>
                                        <div class="input-group stepper-input user-select-none">
                                            <div class="input-group-text decrease">
                                                <svg class="bi bi-dash fs-2"><use href="#bi-dash"></use></svg>
                                            </div>
                                            <input class="input-group-text" type="number" name="duration" id="browsingDuration" min="2" max="10" step="1" value="2">
                                            <div class="input-group-text increase">
                                                <svg class="bi bi-plus fs-2"><use href="#bi-plus"></use></svg>
                                            </div>
                                        </div>
                                        <div class="vstack form-text">
                                            <span>默认为2秒，可设置范围是 2~10</span>
                                            <span>例如：2秒，则视频只观看2秒后，就开始观看下一个视频</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="full-content" role="tabpanel" aria-labelledby="full-tab" tabindex="-1">
                                    <div>
                                        <label class="mb-2" for="loopCount">循环次数</label>
                                        <div class="input-group stepper-input user-select-none">
                                            <div class="input-group-text decrease">
                                                <svg class="bi bi-dash fs-2"><use href="#bi-dash"></use></svg>
                                            </div>
                                            <input class="input-group-text" type="number" name="loop_count" id="loopCount" min="1" max="3" step="1" value="3">
                                            <div class="input-group-text increase">
                                                <svg class="bi bi-plus fs-2"><use href="#bi-plus"></use></svg>
                                            </div>
                                        </div>
                                        <div class="vstack form-text">
                                            <span>默认为3次，可设置范围是 1~3</span>
                                            <span>例如：2次，则视频观看2次后，再开始观看下一个视频</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-body rounded border border-opacity-50">
                            <div>
                                <label class="mb-2" for="browsingNumber">观看数量</label>
                                <div class="input-group flex-nowrap stepper-input user-select-none">
                                    <div class="input-group-text decrease">
                                        <svg class="bi bi-dash fs-2"><use href="#bi-dash"></use></svg>
                                    </div>
                                    <input class="input-group-text" type="number" name="number" id="browsingNumber" min="1" max="124" step="1" value="10">
                                    <div class="input-group-text increase">
                                        <svg class="bi bi-plus fs-2"><use href="#bi-plus"></use></svg>
                                    </div>
                                    <div class="input-group-text">
                                        <div class="form-check">
                                            <input class="form-check-input" type="checkbox" name="all" value="on" id="browsingAll" checked>
                                            <label class="form-check-label" for="browsingAll">全部</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="vstack form-text">
                                    <span>默认为10个视频，最高不超过分类下视频的数量</span>
                                </div>
                            </div>
                            <hr>
                            <div>
                                <label class="mb-2" for="start_pos">起始播放位置</label>
                                <div class="input-group stepper-input user-select-none">
                                    <div class="input-group-text decrease">
                                        <svg class="bi bi-dash fs-2"><use href="#bi-dash"></use></svg>
                                    </div>
                                    <input class="input-group-text" type="number" name="start_pos" id="start_pos" min="1" max="124" step="1" value="1">
                                    <div class="input-group-text increase">
                                        <svg class="bi bi-plus fs-2"><use href="#bi-plus"></use></svg>
                                    </div>
                                </div>
                                <div class="vstack form-text">
                                    <span>默认为1，可设置范围是 1~124</span>
                                    <span>例如：2，则从第二个视频开始观看</span>
                                </div>
                            </div>
                        </div>
                        <div>
                            <div class="d-grid row-gap-2">
                                <button type="reset" class="ms-auto btn btn-sm btn-link link-danger link-underline-opacity-0 btn-outline-secondary">清空</button>
                                <button type="submit" class="btn btn-success">开 始</button>
                            </div>
                            <div class="form-text vstack row-gap-1 text-warning-emphasis">
                                <span>本操作没有停止按钮，点击开始后，可以关闭本页面</span>
                                <span>完整模式的时候，每个人开始观看的起始顺序不一定相同</span>
                                <span>请合理控制次数，否则有被限制的风险</span>
                                <span>功能还未完全完善，存在bug请反馈，未来将会继续优化</span>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </main>
{{ end }}